//分类api
import axios from '@/utils/request'
//获取分类列表
export function categorylistFn() {
    return axios({
        url: '/pro/categorylist'
    })
}
//产品分类下品牌列表
export function categorybrandlistFn(data: { category: string }) {
    return axios({
        url: '/pro/categorybrandlist',
        data,
    })
}
interface iSort{
    count?:number,
    limitNum?:number,
    category?:string,
    brand?:string,
}
//获取某分类下某品牌的产品列表
export function categorybrandprolistFn(data:iSort) {
    return axios({
        url: '/pro/categorybrandprolist',
        data,
    })
}
// //获取产品 的详情数据
//商品详情/pro/detail/:proidgetstring
// export function getdetailFn(proid:string) {
//     return axios({
//         url: '/pro/detail/'+proid,
//         method: 'get',
//     })
// }
export function getdetailFn(data:{proid:string}) {
    return axios({
        url: '/pro/detail/'+data.proid,
        method: 'get',
        data
    })
}